home *** CD-ROM | disk | FTP | other *** search
-
- Verb table.uniqueName
- Syntax table.uniqueName (prefix, tableAdr)
- Parameters prefix is a string that's used in contructing the unique name.
- tableAdr is the address of a table that's about to get a new element.
- Action Iterates over names in the table to return a name that isn't in use.
- Returns An address of an item in the table that doesn't exist, it's safe to assign to.
- Examples table.uniqueName ("item", @scratchpad)
- ╟ scratchpad.item1
- table.uniqueName ("item", @scratchpad)^ = 12
- ╟ 12
- table.uniqueName ("item", @scratchpad)
- ╟ scratchpad.item2
- Notes Use this verb when you're adding an item to a table that contains several objects of the same type.
- An example: you could use this verb to safely add an item to a table of file paths or email accounts.
-